package com.freemalll.merchant.domain.dto;

import com.freemalll.common.mybatis.dto.PageDto;
import com.freemalll.merchant.annotation.common.QueryCondition;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;
import lombok.EqualsAndHashCode;

@EqualsAndHashCode(callSuper = true)
@Data
public class SysConfigDto extends PageDto {

    @Schema(description = "主键")
    @NotBlank(message = "主键不能为空")
    private String coId;

    @Schema(description = "配置key")
    @QueryCondition(column = "co_key")
    private String coKey;

    @Schema(description = "启用状态 0禁用 1启用")
    @NotBlank(message = "启用状态不能为空")
    @QueryCondition(column = "co_enable")
    private Boolean coEnable;

    @Schema(description = "配置描述")
    private String coDesc;

    @Schema(description = "配置value")
    private String coValue;
}
